import { OmitPartial } from '/#/utils';
import { BasicPageParams, BasicModel, BasicFetchResult } from '/@/api/model/baseModel';

export interface BasicOpmsFixFamilyInfoModel {
  /**
   * 家庭id
   */
  id: number;
  /**
   * 户口类型
   */
  hkType: string;
  /**
   * 组号
   */
  groupNumber: string;
  /**
   * 户口本号
   */
  hkbNumber: string;
  /**
   * 户主
   */
  householder: string;
  /**
   * 联系电话
   */
  contactNumber: string;
  /**
   * 家庭地址
   */
  address: string;
  /**
   * 月收入（元）
   */
  monthIncome: string;
  /**
   * 经济状况
   */
  economyStatus: string;
  /**
   * 住所类型（楼房，矮房，别墅，危房，暂无）
   */
  abodeType: string;
  /**
   * 用户id（每个家庭只有一个账号）
   */
  userId: number;
  /**
   * 户主id（居民）
   */
  householderId: number;
}
/**
 * 后台开启id序列化时id类型为字符串，如果没开启id类型就是number,此处用一个动态类型代替，方便生成；
 */
export type OpmsFixFamilyInfoIDType = BasicOpmsFixFamilyInfoModel['id'];

export type UpdateOpmsFixFamilyInfoParams = OmitPartial<BasicOpmsFixFamilyInfoModel, 'id'>;

export type OpmsFixFamilyInfoParams = Partial<BasicOpmsFixFamilyInfoModel>;

export type OpmsFixFamilyInfoPageSearchParams = BasicPageParams & OpmsFixFamilyInfoParams;

export type OpmsFixFamilyInfoListSearchParams = OpmsFixFamilyInfoParams;

export type OpmsFixFamilyInfoModel = BasicModel & BasicOpmsFixFamilyInfoModel;

export type OpmsFixFamilyInfoPageListGetResultModel = BasicFetchResult<OpmsFixFamilyInfoModel>;

export type OpmsFixFamilyInfoListGetResultModel = OpmsFixFamilyInfoModel[];
